package by.kniazhych.core.server.local.logic.peaces {
	import by.kniazhych.core.data.game.PeacePosition;
	import by.kniazhych.core.server.local.logic.LogicController;
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	public class KniazPeace extends GetmanPeace{
		
		protected var _maxOff:uint = 1;
		
		public function KniazPeace(_controller:LogicController, type:uint) {
			super(_controller, type);
		}
		
		override public function checkMotion(sP:PeacePosition, fP:PeacePosition):Boolean {
			return super.checkMotion(sP, fP) && Math.abs(sP.x - fP.x) <= _maxOff && Math.abs(sP.y - fP.y) <= _maxOff;
		}
		
		override public function isNobel():Boolean {
			return true;
		}
		
		override protected function _controllTronIllegalTraverse(p:PeacePosition, fP:PeacePosition):Boolean {
			return false;
		}
		
	}

}